package com.lz.behavior.vistor;

/**
 * CTOVistor..
 *
 * @author Lizhong
 * @date 2019/9/27
 */
public class CTOVistor implements Vistor {

    @Override
    public void visit(Manager company) {
        System.out.println("Manager " + company.getName() + " 产品数量: " + company.getProduct());
    }

    @Override
    public void visit(Developor company) {
        System.out.println("Developer " + company.getName() + " 代码行数: " + company.getCodeLine());
    }
}
